#include <QProcess>
#include <QObject>
#include <QStringList>
#include <QSharedPointer>
#include <QList>


//转换对象，进行文件转换
class ConversionObject :public QObject
{
    Q_OBJECT
    friend class QtToolWidget;
public:
    ConversionObject(QObject *parent = nullptr);
signals:
    void conversionQutput(const QString& outPut);//发送转换时的输出信息
    void conversionFinished(int exitCode, QProcess::ExitStatus exitStatus);//转换完毕发送uic.exe的退出码和退出状态（主线程可忽略此参数）
private slots:
    void startConversion(const QString& uicPath, const QSharedPointer<QList<QSharedPointer<QStringList>>>& startupArguments);
};
